package club.menglinking.wechat.service.adminServiceImp;

import club.menglinking.wechat.dao.UserDao;
import club.menglinking.wechat.service.adminservice.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

/**
 * @ClassName UserServiceImp
 * @Author wuxuan
 * @Date 2019/1/5 16:29
 * @Version 1.0
 * @Description
 **/
@Service("/userService")
public class UserServiceImp implements UserService {

    @Autowired
    private UserDao userDao;

    @Override
    public Boolean adminLogin(Map<String, String> parm) {
        Boolean isLogin=false;
        List<Map> login = userDao.adminLogin(parm);
        if (login.size()>0){
            isLogin=true;
        }
        return isLogin;
    }
}
